<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<!DOCTYPE html>
<html>
 <head>
  <title>短信设置</title>
  <t:base type="jquery,easyui,tools,DatePicker"></t:base>
  <script type="text/javascript">
	  function upperCase(){
		  var  phone = document.getElementById('mobile').value;
		  var  phones = document.getElementById('mobiles');
		  console.log(phones);
		  if(!(/^1[3456789]\d{9}$/.test(phone))) {
			  phones.style.opacity = "1";
			  return false;
		  }else {
			  phones.style.opacity = "0";
		  }
	  }
  </script>
 </head>
 <body>
  <t:formvalid formid="formobj" dialog="true" usePlugin="password" layout="table" action="xmMessageController.do?doAdd" >
					<input id="id" name="id" type="hidden" value="${xmMessagePage.id }"/>
		<table style="width: 600px;" cellpadding="0" cellspacing="1" class="formtable">
				<tr>
					<td align="right">
						<label class="Validform_label">
							交易商:
						</label>
					</td>
					<td class="value">
						<input id="orgid" name="orgid" type="hidden" datatype="*" value=""  />
						<input id="orgname" name="orgname" type="text" style="width: 150px" class="searchbox-inputtext" ignore="checked" datatype="*" readonly="readonly"  onclick="popupClick(this,'fullname,traderid','orgname,orgid','trader_select')"/>
						<span class="Validform_checktip"></span>
						<label class="Validform_label" style="display: none;">交易商</label>
						</td>
				</tr>
				<tr>
					<td align="right">
						<label class="Validform_label">
							资金账号:
						</label>
					</td>
					<td class="value">
						<input id="capital" name="capital" type="text" maxlength="32" style="width: 150px" class="inputxt"  ignore="ignore" onkeyup = "value=value.replace(/[^\d]/g,'')"/>
						<span class="Validform_checktip"></span>
						<label class="Validform_label" style="display: none;">资金账号</label>
					</td>
				</tr>
				<tr>
					<td align="right">
						<label class="Validform_label">
							收信人姓名:
						</label>
					</td>
					<td class="value">
					     	 <input id="recipient" name="recipient" type="text" maxlength="32" style="width: 150px" class="inputxt"  ignore="ignore" />
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">收信人姓名</label>
						</td>
				</tr>
				<tr>
					<td align="right">
						<label class="Validform_label">
							收信手机号:
						</label>
					</td>
					<td class="value">
						<input id="mobile" name="mobile" type="text" maxlength="32" style="width: 150px" class="inputxt"  datatype="n"  ignore="ignore" onblur="upperCase()"/>
						<span class="Validform_checktip" style="display: none"></span>
						<span  style="opacity: 0; color: red" id="mobiles">&nbsp;&nbsp;&nbsp;请输入正确的手机号</span>
						<label class="Validform_label" style="display: none;">收信手机号</label>
						</td>
				</tr>
				<tr>
					<td align="right">
						<label class="Validform_label">
							是否启用:
						</label>
					</td>
					<td class="value">
						<t:dictSelect field="status" type="list"  datatype="*"  typeGroupCode="ISN"  defaultVal="${xmMessagePage.status}" hasLabel="false"  title="是否启用" ></t:dictSelect>
						<span class="Validform_checktip"></span>
						<label class="Validform_label" style="display: none;">是否启用</label>
						</td>
				</tr>
				<tr>
					<td align="right">
						<label class="Validform_label">
							设置人:
						</label>
					</td>
					<td class="value">
					     	 <input id="setter" name="setter" type="text" maxlength="32" style="width: 150px" class="inputxt"  ignore="ignore" />
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">设置人</label>
						</td>
				</tr>
				<tr>
					<td align="right">
						<label class="Validform_label">
							时间:
						</label>
					</td>
					<td class="value">
							   <input id="createTime" name="createTime" type="text" style="width: 150px" class="Wdate" onClick="WdatePicker()"  ignore="ignore" />    
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">时间</label>
						</td>
				</tr>
				
				
			</table>
		</t:formvalid>
 </body>
